GtkSwitch: Don't store dest_offset
authorMatthias Clasen <mclasen@redhat.com>
Mon, 4 Aug 2014 12:30:23 +0000 (14:30 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 4 Aug 2014 12:36:42 +0000 (14:36 +0200)
commit2e85046b8f96f4f751d6afa13ab220b4dab5c7f6
treef02a0d5246dd52857917b69b30ff7ad6cc52e3a4
parentd4bd9e9c46bc1230ea697efe887b1d77f66ba535
GtkSwitch: Don't store dest_offset

Instead, calculate it on the spot in the tick callback, and
update handle_x in gtk_switch_set_active, based on the new
active property.
gtk/gtkswitch.c